﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Text;

namespace WMI.NET.CIM
{
    /// <summary>
    /// The CIM_UserDevice class is a parent class from which other classes, such as CIM_Keyboard or CIM_DesktopMonitor, descend. User devices are logical devices that allow a computer system's user to input, view, or hear data.
    /// </summary>
    public class  CIM_UserDevice :  CIM_LogicalDevice
    {

        private Nullable<Boolean> _IsLocked;

        /// <summary>
        /// If TRUE, the device is locked, preventing user input or output.
        /// </summary>
        public Nullable<Boolean> IsLocked { get { return _IsLocked; } }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="mbo"></param>
        public CIM_UserDevice(ManagementBaseObject mbo)
            : base(mbo)
        {
            _IsLocked = mbo.GetBoolValue("IsLocked");
        }
    }
}
